package example.chapter12.push;

import com.opensymphony.xwork2.ActionSupport;

import example.chapter12.model.Sample;
import example.chapter12.model.User;

public class PushTagAction extends ActionSupport{
	private User user;
	private Sample sample;
	private Object myObject;
	
	public String execute() throws Exception{
		//set user
		user = new User("Struts2", "Apache");
		
		//set sample
		sample = new Sample("BAR");
		sample.setFoo("BAR");
		
		//new myObject
		myObject = new Object();
		
		return SUCCESS;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Sample getSample() {
		return sample;
	}

	public void setSample(Sample sample) {
		this.sample = sample;
	}

	public Object getMyObject() {
		return myObject;
	}

	public void setMyObject(Object myObject) {
		this.myObject = myObject;
	}
	
}
